
class Foo(object):
    def __init__(self):
        pass

    def __getattr__(self, item):
        print("%s "%item,end="")
        return self

    def __str__(self):
        return ""
# obj = Foo()
# "think"obj.think
# obj.different


print(Foo().think.different.itcast)
